<?php include template("html_header");?>


	<div class="top-menu">
		<div class="top-menu-outer">
			<?php if($login_user){?>
			<p class="i-am">
				欢迎您，
				<a href="/order/index.php" class="me">
					<!--<img class="photo" src="http://pic.digu.com/file/default/SIGN_39_24x24.jpg" alt="zombie321">-->
					<span><?php echo $login_user['username']; ?></span>
				</a>
				！
			</p>
			<ul class="top-menu-ul">
				<li class="menu-item"><a href="/order/index.php" id="myaccount" class="account">我的<?php echo $INI['system']['abbreviation']; ?></a></li>
				<li class="menu-item"><a href="/account/sync.php">同步设置</a></li>
				<li class="menu-item"><a id="verify-coupon-id" href="javascript:;"><?php echo $INI['system']['couponname']; ?>验证及消费登记</a></li>
				<li class="menu-item"><a href="/account/logout.php">退出</a></li>
			</ul>
			<?php } else { ?>
			<ul class="top-menu-ul">
					<li class="menu-item"><a href="/account/login.php">登录</a></li>
					<li class="menu-item"><a href="/account/signup.php">注册</a></li>
				<li class="menu-item"><a id="verify-coupon-id" href="javascript:;"><?php echo $INI['system']['couponname']; ?>验证及消费登记</a></li>
			</ul>
			<?php }?>
		</div>
	</div>
<div id="hdw">

	<div id="hd">
		<div id="logo"><a href="/index.php" class="link" title="返回首页"><img src="/static/css/i/logo.png"></a></div>
		
		<div id="header-subscribe-body" class="subscribe">
			<form action="/subscribe.php" method="post" id="header-subscribe-form">
				<!--<label for="header-subscribe-email" class="text">想知道<?php echo $city['name']; ?>最新的优惠活动是什么吗？</label>-->
				<input type="hidden" name="city_id" value="<?php echo $city['id']; ?>" />
				<input id="header-subscribe-email" type="text" xtip="输入Email，订阅最新活动信息..." value="" class="f-text" name="email" />
				<input type="hidden" value="$city['id']" name="cityid" />
				<input type="submit" class="commit" value="订阅" />
			</form>
			<?php if(option_yes('smssubscribe')){?>
			<span><a class="sms" onclick="X.miscajax('sms','subscribe');">&raquo; 短信订阅，免费！</a>&nbsp; <a class="sms" onclick="X.miscajax('sms','unsubscribe');">&raquo; 取消手机订阅</a></span>
			<?php }?>
		</div>
		<ul class="new-nav cf"><?php echo current_frontend(); ?></ul>
		<!--<div class="refer">&raquo;&nbsp;<a href="/subscribe.php">邮件订阅</a>&nbsp;&nbsp;&nbsp;&raquo;&nbsp;<a href="/account/invite.php">邀请好友</a>&nbsp;&nbsp;&nbsp;&raquo;&nbsp;<a id="verify-coupon-id" href="javascript:;"><?php echo $INI['system']['couponname']; ?>验证及消费登记</a>-->
		</div>
	</div>
</div>

<?php if($session_notice=Session::Get('notice',true)){?>
<div class="sysmsgw" id="sysmsg-success"><div class="sysmsg"><p><?php echo $session_notice; ?></p><span class="close">关闭</span></div></div> 
<?php }?>
<?php if($session_notice=Session::Get('error',true)){?>
<div class="sysmsgw" id="sysmsg-error"><div class="sysmsg"><p><?php echo $session_notice; ?></p><span class="close">关闭</span></div></div> 
<?php }?>